#pragma once

#include <QThread>
#include <QObject>
#include <string>
#include "opencv2/opencv.hpp"
#include "list_message.h"

using namespace cv;
using namespace std;
class SaveImage:public::QObject
{
        Q_OBJECT
    public:

    ListMessgae<pair<string,Mat>>	m_qDisplayFrameQueue;		///< 待处理显示原始图像队列（输入图像缓冲）

    SaveImage();
    void run();
    void addImage(string image_name , Mat image);
};



class SaveImageThread:public::QObject
{
    Q_OBJECT
 public:
    QThread* thread;
    SaveImage* save_image;
public:
   SaveImageThread();
   void run();
   void quit();
   void addImage(string image_name , Mat image);
signals:
     void startThread();
};

